package com.obtk.shilipai.service;

import com.obtk.shilipai.dao.ShopMenuMapper;
import com.obtk.shilipai.entity.ShopMenu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class ShopMenuService {
    @Autowired
    private ShopMenuMapper shopMenuMapper;

    public List<ShopMenu> getShopMenu() {
        return shopMenuMapper.getShopMenu();
    }

    public BigDecimal getOrderMoney(Integer shopId) {
        return shopMenuMapper.getOrderMoney(shopId);
    }

    public int getOrderNum(Integer shopId) {
        return shopMenuMapper.getOrderNum(shopId);
    }

    public int getAppNum(Integer shopId) {
        return shopMenuMapper.getAppNum(shopId);
    }

    public String getAppAvg(Integer shopId) {
        return shopMenuMapper.getAppAvg(shopId);
    }
}
